import request from '../../request'
import { IResponse } from './model/usersTypes'
/**
 * 封装获取用户列表接口方法
 * @param name 
 * @returns Promise
 */
export const getUsers = (name:string)=>{
    return request.get<any,IResponse>('/search/users',{
        params:{
            q:name
        }
    })
}